package com.fantasy.blog.controller;

import com.fantasy.blog.service.ProxyService;
import com.fantasy.blog.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping("proxy")
public class ProxyController {

    @Autowired
    private ProxyService proxyService;

    @GetMapping
    public Result getImg() throws IOException {
        return proxyService.getImg();
    }

}
